using System;
using System.Reflection;
using XmlObjects.XmlDocumentMarkup.XmlWriter;

namespace XmlObjects.XmlDocumentMarkup
{
	/// <summary>
	/// Write Xml for an object.
	/// </summary>
	public class ClassMarkupReader
	{
		private string elementName;
	}

	public class PropertyMarkupReader
	{
		private PropertyInfo propertyInfo;
		private IXmlSimpleEntity entityReader;
		private string elementName;
		private string format;


		public PropertyMarkupReader(PropertyInfo propertyInfo)
		{
			this.propertyInfo = propertyInfo;
			foreach (Attribute a in propertyInfo.PropertyType.GetCustomAttributes(true))
			{
				if (a is XmlMarkupAttribute)
				{
					XmlMarkupAttribute xmlMarkupAttribute = (XmlMarkupAttribute) a;
					elementName = xmlMarkupAttribute.Name;
					format = xmlMarkupAttribute.Format;

					///   If this is a 

					///  Check the type of the 
					entityReader = new ElementWriter();
					break;
				}
			}
		}
	}
}